<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Sentir, Responsive admin and dashboard UI kits template">
    <meta name="keywords" content="admin,bootstrap,template,responsive admin,dashboard template,web apps template">
    <meta name="author" content="Ari Rusmanto, Isoh Design Studio, Warung Themes">
    <title>Main</title>

    <!-- BOOTSTRAP CSS (REQUIRED ALL PAGE)-->
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/css/bootstrap.css" rel="stylesheet">
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/Kendo/assets/styles/kendo.default.min.css" rel="stylesheet">
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/Kendo/assets/styles/kendo.common.min.css" rel="stylesheet">
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/Kendo/assets/styles/kendo.common-bootstrap.min.css" rel="stylesheet">
    <!-- MAIN CSS (REQUIRED ALL PAGE)-->
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/css/style.css" rel="stylesheet">
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/css/style-responsive.css" rel="stylesheet">
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/jquery-pace/pace.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/fd-slider/fd-slider.css" >
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/avatarPicker/css/image-explorer.css">
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/avatarPicker/css/image-upload-and-crop.css">
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/toastr/toastr.css" rel="stylesheet">
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body class="tooltips">

<!--
===========================================================
BEGIN PAGE
===========================================================
-->
<div class="wrapper">

    <!-- BEGIN TOP NAV -->
    <div class="top-navbar">
    <div class="top-navbar-inner">

        <!-- Begin Logo brand -->
        <div class="logo-brand">
            <a href="index.html"><img src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/img/sentir-logo-primary.png" alt="Sentir logo"></a>
        </div><!-- /.logo-brand -->
          <!-- End Logo brand -->

        <div class="top-nav-content">

            <!-- Begin button sidebar left toggle -->
            <div class="btn-collapse-sidebar-left">
                <i class="fa fa-bars"></i>
            </div><!-- /.btn-collapse-sidebar-left -->
            <!-- End button sidebar left toggle -->

            <!-- Begin user session nav -->
            <ul class="nav-user navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/img/avatar/avatar.jpg" class="avatar img-circle" alt="Avatar">
                        <?php
                                $arr =  CJSON::decode(Yii::app()->session['userInfo']);
                                echo Yii::t("messages","Hi");
                                echo " , ";
                                echo CHtml::openTag('strong');
                                echo  $arr['USER_NAME'];
                                echo CHtml::closeTag('strong');
                        ?>
                    </a>
                    <ul class="dropdown-menu square primary margin-list-rounded with-triangle">
                        <li><a href="#fakelink">Account setting</a></li>
                        <li>
                            <?php
                                    echo CHtml::link(Yii::t("messages","Change Avatar"), "#",
                                        $arr = array(
                                          "data-toggle"=>"modal"
                                        , "data-target"=>".avatar-dialog"
                                        , "data-backdrop" => "static"
                                        , "data-show" =>"true"
                                        )
                            )
                            ?>
                        </li>
                        <li>
                                <?php
                                echo CHtml::link(Yii::t("messages","Change Password"), Yii::app()->createUrl("user/ChangePassword"),
                                    $arr = array(
                                          "data-toggle"=>"modal"
                                        , "data-target"=>".password-dialog"
                                        , "data-backdrop" => "static"
                                        , "data-show" =>"true"
                                    )
                                )
                                ?>
                        </li>
                        <li><a href="#fakelink">My public profile</a></li>

                        <li class="divider"></li>
                        <li>
                            <?php
                                    echo CHtml::link(Yii::t("messages","Log Out"), "#",
                                            $arr = array(
                                              "data-toggle"=>"modal"
                                            , "data-target"=>".confirm-dialog"
                                            , "data-do"=>"logout"
                                            , "data-title"=> Yii::t("messages", "Log Out")
                                            , "data-message"=> Yii::t("messages", "Would you like to sign out"). " ?"
                                            , "data-href"=> Yii::app()->createUrl("site/logout")
                                            )
                                        )
                            ?>
                        </li>
                    </ul>
                </li>
            </ul>
            <!-- End user session nav -->

            <!-- Begin Collapse menu nav -->
            <div class="collapse navbar-collapse" id="main-fixed-nav">
                <!-- Begin nav search form -->
                <form class="navbar-form navbar-left" role="search">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search">
                    </div>
                </form>

            </div><!-- /.navbar-collapse -->
            <!-- End Collapse menu nav -->
        </div><!-- /.top-nav-content -->
    </div><!-- /.top-navbar-inner -->
    </div><!-- /.top-navbar -->
    <!-- END TOP NAV -->

    <!-- BEGIN SIDEBAR LEFT -->
    <div class="sidebar-left sidebar-nicescroller" tabindex="5000">
        <ul class="sidebar-menu">

            <li>
                <a href="index.html">
                    <i class="fa fa-dashboard icon-sidebar"></i>Dashboard
                </a>
            </li>

        </ul>
    </div><!-- /.sidebar-left -->
    <!-- END SIDEBAR LEFT -->

    <?php echo $content ?>

</div><!-- /.wrapper -->
<!-- END PAGE CONTENT -->

<!-- BEGIN BACK TO TOP BUTTON -->
<div id="back-top">
    <a href="#top"><i class="fa fa-chevron-up"></i></a>
</div>
<!-- END BACK TO TOP -->
<!-- BEGIN MODAL POPUP -->
<div class="modal fade confirm-dialog" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content modal-shadow">
            <div class="modal-header ">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title"></h4>
            </div>
            <div class="modal-body">
                <p></p>
            </div>
            <div class="modal-footer">
                <button type="button" id="confirmBtn" class="btn btn-primary"><?php echo Yii::t('messages',"Yes")?></button>
                <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo Yii::t('messages',"No")?></button>
            </div><!-- /.modal-footer -->
        </div><!-- /.modal-content .modal-no-shadow -->
    </div><!-- /.modal-dialog -->
</div>

<div class="modal fade avatar-dialog" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content modal-shadow">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">
                    <?php
                        echo Yii::t("messages", "Change Avatar")
                    ?>
                </h4>
            </div>
            <div class="modal-body">


            </div>
            <img src="" id="output">
        </div><!-- /.modal-content .modal-no-shadow -->
    </div><!-- /.modal-dialog -->
</div>
<div class="modal fade password-dialog" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content modal-shadow">

        </div><!-- /.modal-content .modal-no-shadow -->
    </div><!-- /.modal-dialog -->
</div>

<!-- END MODAL POPUP -->
<!--
===========================================================
END PAGE
===========================================================
-->

<!--
===========================================================
Placed at the end of the document so the pages load faster
===========================================================
-->
<!-- MAIN JAVASRCIPT (REQUIRED ALL PAGE)-->
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/js/jquery.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/js/jquery-ui.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/js/bootstrap.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/js/underscore.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/retina/retina.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/nicescroll/jquery.nicescroll.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/jquery-pace/pace.min.js" "></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/validator/bootstrapValidator.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/Kendo/assets/js/kendo.all.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/Kendo/assets/js/cultures/kendo.culture.<?php echo Yii::app()->language; ?>.min.js"></script>
<!-- PLUGINS JS -->
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/util/util.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/js/comm/languages.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/avatarPicker/js/canvas-cropper.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/avatarPicker/js/client-file-handler.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/avatarPicker/js/client-file-reader.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/avatarPicker/js/drag-drop-file-target.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/avatarPicker/js/upload-interceptor.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/avatarPicker/js/image-explorer.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/avatarPicker/js/image-upload-and-crop.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/culture/common.culture.<?php echo Yii::app()->language; ?>.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/avatarPicker/cultures/avatar.culture.<?php echo Yii::app()->language; ?>.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/plugins/fd-slider/fd-slider.js"></script>
<!-- PLUGINS -->
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/skycons/skycons.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/prettify/prettify.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/magnific-popup/jquery.magnific-popup.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/owl-carousel/owl.carousel.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/chosen/chosen.jquery.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/icheck/icheck.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/mask/jquery.mask.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/summernote/summernote.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/markdown/markdown.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/markdown/to-markdown.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/markdown/bootstrap-markdown.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/slider/bootstrap-slider.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/classic/plugins/toastr/toastr.js"></script>
<!-- MAIN APPS JS -->
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/js/main/main.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/assets/common/js/comm/xhr.js"></script>

<script type="text/javascript" >
    $(function(){
        Main.init('<?php echo Yii::app()->language; ?>');
        Main.initCommonFunction();
    })
</script>
</body>
</html>